﻿Public Class RefreshData
    Public Shared Sub AscendingRefresh(dgv As DataGridView, ByRef colNumber As Int16)
        dgv.Sort(dgv.Columns(colNumber), System.ComponentModel.ListSortDirection.Descending)
        dgv.Sort(dgv.Columns(colNumber), System.ComponentModel.ListSortDirection.Ascending)
    End Sub
    Public Shared Sub DescendingRefresh(dgv As DataGridView, ByRef colNumber As Int16)
        dgv.Sort(dgv.Columns(colNumber), System.ComponentModel.ListSortDirection.Ascending)
        dgv.Sort(dgv.Columns(colNumber), System.ComponentModel.ListSortDirection.Descending)

    End Sub
End Class
